﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN11_1S.aspx.cs" Inherits="IFRS_WIN11_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsMenu,ConditionSearch%>" />
                </legend>
                <div class="table_detail">
                    <asp:PlaceHolder ID="form_control" runat="server">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtTransactionDate" SkinID="TextBoxWithNoColor" runat="server" CssClass="datepicker"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblAccountNo" runat="server" Text="<%$Resources:ifrsField,NO_ACCOUNT%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtAccountNo" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblCostCenter" runat="server" Text="<%$Resources:ifrsField,COST_CENTER%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtCostCenter" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblIsConfirmed" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlIsConfirmed" runat="server" SkinID="DropDownListWithNoColor" />
                        </div>
                    </div>
                    </asp:PlaceHolder>
                </div>
                <div class="colbtn">
                    <asp:Button ID="btnSEARCH" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>"
                        OnClick="btnSEARCH_Click" />&nbsp;
                    <asp:Button ID="btnCLEAR" runat="server" 
                        Text="<%$Resources:ifrsButton,CLEAR%>" onclick="btnCLEAR_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" runat="server" 
                        Text="<%$Resources:ifrsButton,CANCEL%>" onclick="btnCANCEL_Click" />&nbsp;
                </div>
            </fieldset>
            <div class="colbtnAdd">
                <asp:Button ID="btnAdd" runat="server" Text="<%$Resources:ifrsButton,ADD%>" onclick="btnAdd_Click" />
            </div>
            <div class="content_grid">
                <asp:GridView ID="gvSERACH" runat="server" AutoGenerateColumns="False" AllowSorting="true" Width="100%"
                    CssClass="CSSTableGenerator" OnRowDataBound="gvSERACH_RowDataBound" onsorting="gvSERACH_Sorting" >
                    <Columns>
                        <asp:TemplateField HeaderText="<%$Resources:ifrsField,CENTER_SEQ%>" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblgvSeq" runat="server" Text="<%# Container.DataItemIndex+1 %>"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TransactionDate" HeaderText="<%$Resources:ifrsField,DATE_TRANSACTION%>"
                            DataFormatString="{0:dd/MM/yyyy}" SortExpression="TransactionDate" ItemStyle-HorizontalAlign="Center"/>
                        <asp:BoundField DataField="AccountNo" HeaderText="<%$Resources:ifrsField,ACCOUNTNO%>" SortExpression="AccountNo" />
                        <asp:BoundField DataField="GLAccount" HeaderText="<%$Resources:ifrsField,GL_ACCOUNT%>" SortExpression="GLAccount" />
                        <asp:BoundField DataField="COST_CENTER_NM" HeaderText="<%$Resources:ifrsField,COST_CENTER%>" SortExpression="COST_CENTER_NM" />
                        <asp:BoundField DataField="StartedDate" HeaderText="<%$Resources:ifrsField,FCD_STARTEDDATE%>"
                            DataFormatString="{0:dd/MM/yyyy}" SortExpression="StartedDate" ItemStyle-HorizontalAlign="Center"/>
                        <asp:BoundField DataField="EndDate" HeaderText="<%$Resources:ifrsField,FCD_ENDDATE%>" 
                            DataFormatString="{0:dd/MM/yyyy}" SortExpression="EndDate" ItemStyle-HorizontalAlign="Center"/>
                        <asp:BoundField DataField="UnpaidCapital" HeaderText="<%$Resources:ifrsField,UNPAIDCAPITAL%>" SortExpression="UnpaidCapital"
                            DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right"/>
                        <asp:TemplateField HeaderText="<%$Resources:ifrsField,STATUS%>" ItemStyle-HorizontalAlign="center"
                            SortExpression="IsConfirmed" >
                            <ItemTemplate>
                                <asp:Label ID="lblgvISCONFIRMED" runat="server" Text='<%# Eval("IsConfirmed_Name") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                    OnClick="lnkCopyItems_Click">
                                    <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                    OnClick="lnkEditItems_Click">
                                    <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                    OnClick="lnkDeleteItems_Click">
                                    <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                    OnClick="lnkViewItems_Click">
                                    <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                
            </div>
            <div class="content_paging">
                <asp:Repeater ID="repPager" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>

